package shaka.utils;

import junit.framework.Test;
import junit.textui.TestRunner;

import com.clarkware.junitperf.ConstantTimer;
import com.clarkware.junitperf.LoadTest;

public class AllTestByThread {
	public static Test suite() {
		int users = 10;// 執行緒數量
		int iterators = 5;// 每個執行緒反覆執行的次數
		com.clarkware.junitperf.Timer timer = new ConstantTimer(10);// 每隔多少時間啟動新的執行緒
		LoadTest loadTest = new LoadTest(AllTests.suite(), users, iterators, timer);
		return loadTest;
	}

	public static void main(String... args) {
		TestRunner.run(suite());
	}
}
